<form method="post" action="{url link='current'}">
<table cellspacing="0" width="100%" class="forumline">
<tr>
	<td class="row-header" colspan="6">
	<span>{language text="approve_pics"}</span>
	</td>
</tr>
{if !getParam('approve_images') && count($aItems)==0}
<tr>
 	<td>
	<div class="message_info" style="font-size:10pt;">
		{language text='Mod_Gallery.approval_info'}
	</div>
	</td>
</tr>		
{else}   
{if !count($aItems)}
<tr>
	<td class="catBottom" colspan="6">
	<div class="message_info">{language text="there_are_no_pictures_to_approve_ye"}</div>
    </td>
</tr>
{else}
<tr>
	<td class="catBottom" colspan="6">
	<table style="width:100%;" cellpadding="0" cellspacing="0">
	<tr>
		<td>{language text='global_pager' count1=$iFrom count2=$iTo count3=$iCnt}</td>
    	<td style="text-align:right;">{include file="$sRootPath/_blocks/pager.html"}</td>
    </tr>
    </table>
    </td>
</tr>
<tr>
	<th></th>
	<th>{language text='Mod_Gallery.image'}</th>
	<th>{language text="category_145"}</th>
	<th>{language text="posted_by_604"}</th>
	<th>{language text="who_can_view"}</th>
	<th>{language text='Mod_Gallery.feature'}</th>
</tr>
{foreach from=$aItems item=aItem}
<tr>
	<td class="row1" style="text-align:center; width:75px;">
		<div><input type="checkbox" name="val[{$aItem.id}][id]" value="{$aItem.id}" /></div>
	</td>
	<td class="row1" style="text-align:center;">
	{img src="`$sImagePath`thumb/`$aItem.id`.jpg" src_def="design/pic/noimage_120.jpg" style="vertical-align:middle;" class="pic1" onmouseover="this.className='pic2';" onmouseout="this.className='pic1';"}
	</td>
	<td class="row1" style="text-align:center;">
		<select name="val[{$aItem.id}][category]">
		{html_options options=$aCategories selected=$aItem.category}
		</select>
	</td>
	<td class="row1"><a href="{url link='public.user' name=$aItem.user}">{$aItem.user}</a></td>
	<td class="row1" style="text-align:center;">
		<select name="val[{$aItem.id}][who_view]">
		{html_options options=$aPrivacySettings selected=$aItem.who_view}
		</select>
	</td>
	<td class="row1" style="text-align:center; width:75px;">
		<div><input type="checkbox" name="val[{$aItem.id}][feature]" value="" /></div>
	</td>
</tr>
{/foreach}
<tr>
	<td class="row1" colspan="6">
	<table style="width:100%;" cellpadding="0" cellspacing="0">
	<tr>
		<td>{language text='global_pager' count1=$iFrom count2=$iTo count3=$iCnt}</td>
    	<td style="text-align:right;">{include file="$sRootPath/_blocks/pager.html"}</td>
    </tr>
    </table>
    </td>
</tr>
<tr>
	<td class="catBottom" colspan="6" style="text-align:center;">
		<input type="submit" value="{language text='Mod_Gallery.approve_selected'}" name="approve" />
		<input type="submit" value="{language text='Mod_Gallery.delete_selected'}" name="delete" />
    </td>
</tr>
{/if}
{/if}
</table>
</form>